package com.greyu.ysj.entity;

import java.io.Serializable;

/**
 * inv_tree
 * @author 
 */
public class InvTree implements Serializable {
    private Integer id;

    /**
     * 用户ID
     */
    private Integer userId;

    /**
     * is_creat_flag
     */
    private String isCreatFlag;

    /**
     * level_index
     */
    private Integer levelIndex;

    /**
     * root
     */
    private String root;

    /**
     * 直接推荐人数
     */
    private Integer referCnt;

    /**
     * asset_invest
     */
    private Double assetInvest;

    /**
     * asset_valid_invest
     */
    private Double assetValidInvest;

    /**
     * team_asset_invest
     */
    private Double teamAssetInvest;

    /**
     * team_assset_valid_invest
     */
    private Double teamAsssetValidInvest;

    /**
     * user_star
     */
    private Integer userStar;

    /**
     * team_max_star
     */
    private Integer teamMaxStar;

    /**
     * 用户电话
     */
    private String userphone;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getIsCreatFlag() {
        return isCreatFlag;
    }

    public void setIsCreatFlag(String isCreatFlag) {
        this.isCreatFlag = isCreatFlag;
    }

    public Integer getLevelIndex() {
        return levelIndex;
    }

    public void setLevelIndex(Integer levelIndex) {
        this.levelIndex = levelIndex;
    }

    public String getRoot() {
        return root;
    }

    public void setRoot(String root) {
        this.root = root;
    }

    public Integer getReferCnt() {
        return referCnt;
    }

    public void setReferCnt(Integer referCnt) {
        this.referCnt = referCnt;
    }

    public Double getAssetInvest() {
        return assetInvest;
    }

    public void setAssetInvest(Double assetInvest) {
        this.assetInvest = assetInvest;
    }

    public Double getAssetValidInvest() {
        return assetValidInvest;
    }

    public void setAssetValidInvest(Double assetValidInvest) {
        this.assetValidInvest = assetValidInvest;
    }

    public Double getTeamAssetInvest() {
        return teamAssetInvest;
    }

    public void setTeamAssetInvest(Double teamAssetInvest) {
        this.teamAssetInvest = teamAssetInvest;
    }

    public Double getTeamAsssetValidInvest() {
        return teamAsssetValidInvest;
    }

    public void setTeamAsssetValidInvest(Double teamAsssetValidInvest) {
        this.teamAsssetValidInvest = teamAsssetValidInvest;
    }

    public Integer getUserStar() {
        return userStar;
    }

    public void setUserStar(Integer userStar) {
        this.userStar = userStar;
    }

    public Integer getTeamMaxStar() {
        return teamMaxStar;
    }

    public void setTeamMaxStar(Integer teamMaxStar) {
        this.teamMaxStar = teamMaxStar;
    }

    public String getUserphone() {
        return userphone;
    }

    public void setUserphone(String userphone) {
        this.userphone = userphone;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        InvTree other = (InvTree) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getIsCreatFlag() == null ? other.getIsCreatFlag() == null : this.getIsCreatFlag().equals(other.getIsCreatFlag()))
            && (this.getLevelIndex() == null ? other.getLevelIndex() == null : this.getLevelIndex().equals(other.getLevelIndex()))
            && (this.getRoot() == null ? other.getRoot() == null : this.getRoot().equals(other.getRoot()))
            && (this.getReferCnt() == null ? other.getReferCnt() == null : this.getReferCnt().equals(other.getReferCnt()))
            && (this.getAssetInvest() == null ? other.getAssetInvest() == null : this.getAssetInvest().equals(other.getAssetInvest()))
            && (this.getAssetValidInvest() == null ? other.getAssetValidInvest() == null : this.getAssetValidInvest().equals(other.getAssetValidInvest()))
            && (this.getTeamAssetInvest() == null ? other.getTeamAssetInvest() == null : this.getTeamAssetInvest().equals(other.getTeamAssetInvest()))
            && (this.getTeamAsssetValidInvest() == null ? other.getTeamAsssetValidInvest() == null : this.getTeamAsssetValidInvest().equals(other.getTeamAsssetValidInvest()))
            && (this.getUserStar() == null ? other.getUserStar() == null : this.getUserStar().equals(other.getUserStar()))
            && (this.getTeamMaxStar() == null ? other.getTeamMaxStar() == null : this.getTeamMaxStar().equals(other.getTeamMaxStar()))
            && (this.getUserphone() == null ? other.getUserphone() == null : this.getUserphone().equals(other.getUserphone()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getIsCreatFlag() == null) ? 0 : getIsCreatFlag().hashCode());
        result = prime * result + ((getLevelIndex() == null) ? 0 : getLevelIndex().hashCode());
        result = prime * result + ((getRoot() == null) ? 0 : getRoot().hashCode());
        result = prime * result + ((getReferCnt() == null) ? 0 : getReferCnt().hashCode());
        result = prime * result + ((getAssetInvest() == null) ? 0 : getAssetInvest().hashCode());
        result = prime * result + ((getAssetValidInvest() == null) ? 0 : getAssetValidInvest().hashCode());
        result = prime * result + ((getTeamAssetInvest() == null) ? 0 : getTeamAssetInvest().hashCode());
        result = prime * result + ((getTeamAsssetValidInvest() == null) ? 0 : getTeamAsssetValidInvest().hashCode());
        result = prime * result + ((getUserStar() == null) ? 0 : getUserStar().hashCode());
        result = prime * result + ((getTeamMaxStar() == null) ? 0 : getTeamMaxStar().hashCode());
        result = prime * result + ((getUserphone() == null) ? 0 : getUserphone().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", isCreatFlag=").append(isCreatFlag);
        sb.append(", levelIndex=").append(levelIndex);
        sb.append(", root=").append(root);
        sb.append(", referCnt=").append(referCnt);
        sb.append(", assetInvest=").append(assetInvest);
        sb.append(", assetValidInvest=").append(assetValidInvest);
        sb.append(", teamAssetInvest=").append(teamAssetInvest);
        sb.append(", teamAsssetValidInvest=").append(teamAsssetValidInvest);
        sb.append(", userStar=").append(userStar);
        sb.append(", teamMaxStar=").append(teamMaxStar);
        sb.append(", userphone=").append(userphone);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}